//
//  SecViewController.swift
//  LoadBSBJ
//
//  Created by eport_user1 on 2018/1/8.
//  Copyright © 2018年 eport_user1. All rights reserved.
//

import UIKit

class SecViewController: UIViewController {

    var contextLabel:UITextView?
    
    var content:ContentModel?
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        setupUI()
        
       
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

   

}

extension SecViewController{
    
    func setupUI() -> Void {
       
        self.title = "详情"
        view.backgroundColor = UIColor.white
        
        contextLabel = UITextView(frame: CGRect(x: 0, y: kTopHeight, width: kScreenWidth, height: kScreenHeight - kTopHeight - 34))
        contextLabel?.text = content?.text
        contextLabel?.font = UIFont.systemFont(ofSize: 15)
        contextLabel?.textColor = UIColor.black
        contextLabel?.isEditable = false
        view.addSubview(contextLabel!)
        
    }
}


